// 给/js/简介返回要展示的茶的本地存储
Mock.mock("/js/简介", "post", function () {
    let showteaobj = localStorage.Describe;
    return showteaobj;
})

// 给/js/show返回相关的茶
Mock.mock("/js/show", "post", function (data) {
    let teaobj = JSON.parse(data.body);
    console.log(teaobj);
    let teaarr = JSON.parse(localStorage.Tea);
    let xiangguanteaarr = [];
    for (let i = 0; i < teaarr.length; i++) {
        if (teaarr[i].teatype == teaobj[0].teatype && teaarr[i].teaname != teaobj[0].teaname) {
            xiangguanteaarr.push(teaarr[i]);
        }
    }
    return xiangguanteaarr;

})